<template>
	<!-- AI识别 -->
	<view>
		<!-- 主体内容 -->
		<view class="padding">
			<j-card #default>
				<view class="content text-sm padding-tb-sm">
					设备支持的算法可互相切换，服务期内只收取一次费用。
				</view>
			</j-card>
			<!-- 支持开通的设备列表 -->
			<device-list bg="bg-white" :border="true" :list="devices"></device-list>
			<!-- 人脸：faceid  车牌：plate -->
		</view>
		<!-- 按钮 -->
		<buttons :classifyId="classifyId"></buttons>
	</view>
</template>

<script>
import {getDevice} from './mixins'
import buttons from './module/buttons/buttons'
import deviceList from './module/deviceList/deviceList'
export default {
	mixins: [getDevice],
	components: {
	   deviceList,
	   buttons
	},
    data() {
		return {
			classifyId:'',
			// 设备列表
			devices:[],
			// 广告列表
			adList:[
				{col:4,list:[
					{url:1,title:this.$t('JLink.pmsVoes.ads.content.name1'),text:this.$t('JLink.pmsVoes.ads.content.text1')},
					{url:2,title:this.$t('JLink.pmsVoes.ads.content.name2'),text:this.$t('JLink.pmsVoes.ads.content.text2')},
					{url:3,title:this.$t('JLink.pmsVoes.ads.content.name3'),text:this.$t('JLink.pmsVoes.ads.content.text3')},
					{url:4,title:this.$t('JLink.pmsVoes.ads.content.name4'),text:this.$t('JLink.pmsVoes.ads.content.text4')}
				]},
			]
		}
    },
    onLoad(e) {
		this.classifyId = e.classifyId;
    },
    onShow() {
		this.devices = deviceMessage();
	},
    methods: {
    }
}
</script>

<style lang="less" scoped>
	@import '@/common/style/main.css';
</style>